package week4;

import com.sun.corba.se.impl.interceptors.SlotTableStack;

/**
 * Created by dell on 2017/3/17.
 */
public class Game1RPG {
    public static void main(String[] args) {
        demoSwordsMan();
        demoMagician();
    }

    static void demoSwordsMan() {
        SwordsMan swordsMan = new SwordsMan();
        swordsMan.setName("Justin");
        swordsMan.setLevel(1);
        swordsMan.setBlood(200);
        System.out.printf("剑士：（%s, %d, %d）%n", swordsMan.getName(), swordsMan.getLevel(), swordsMan.getBlood());
    }

    static void demoMagician() {
        Magician magician = new Magician();
        magician.setName("Monica");
        magician.setLevel(2);
        magician.setBlood(300);
        System.out.printf("魔法师：（%s, %d, %d）%n", magician.getName(), magician.getLevel(), magician.getBlood());
    }
}
